//
//  YLIntegralRecordModel.m
//  YLFinanceService
//
//  Created by she1323 on 2017/11/24.
//  Copyright © 2017年 she1323. All rights reserved.
//

#import "YLIntegralRecordModel.h"

@implementation YLIntegralRecordModel

- (void)setEntryTimeText:(NSString *)entryTimeText
{
    _entryTimeText = entryTimeText;
    
    NSDateFormatter* dateFormat = [[NSDateFormatter alloc] init];//实例化一个NSDateFormatter对象
    
    [dateFormat setDateFormat:@"yyyy/MM/dd HH:mm:ss"];//设定时间格式,这里可以设置成自己需要的格式
    
    NSDate *date =[dateFormat dateFromString:entryTimeText];
    
    [dateFormat setDateFormat:@"yyyy.MM.dd"];//设定时间格式,这里可以设置成自己需要的格式
    
    _entryTimeText = [dateFormat stringFromDate:date];

}

@end


@implementation YLIntegralRecordItem

+ (NSDictionary<NSString *,id> *)modelContainerPropertyGenericClass
{
    return @{@"item" : [YLIntegralRecordModel class]};
}

@end
